//编码问题+路由跳转
!function(use,util,win){
	function forword(path,obj){
		var req=this;
		req.path=util.getPath("#"+path);
		req.query=obj;
		req.next(0);
	}
	function redirect(path,obj){
		if(path.indexOf('?')===-1&&obj){
			path+='?'+util.stringify(obj);
		}
		win.location.hash=path;
	}
	use(function(req,next){
		var path=window.decodeURI(req.path);
		req.path=path;
		req.forword=forword;
		req.redirect=redirect;
		next();
	});
}(route.use,util,this);